﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Showroom.BLL;

namespace ShowroomMobile.Controls
{
    public partial class SlideShow : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Showroom.BLL.SlideShow slides = Showroom.BLL.SlideShow.LoadActiveSlides();
                rptSlides.DataSource = slides.DefaultView;
                rptSlides.DataBind();
            }
        }
    }
}